package com.iscc.fake.service.Impl;

import com.iscc.fake.domain.Comment;
import com.iscc.fake.domain.Pager;
import com.iscc.fake.dao.CommentDAO;
import com.iscc.fake.dao.Impl.CommentDaoImpl;
import com.iscc.fake.service.CommentService;

import java.util.List;

public class CommentServiceImpl implements CommentService {


    CommentDAO commentDAO=new CommentDaoImpl();
    //查询；评价表
    @Override
    public List<Comment> selectComment(Pager pager) {

            return commentDAO.selectComment(pager);

    }


    //增加：评价表
    @Override
    public int addComment(Comment comment) {
        return commentDAO.addComment(comment);
    }

    @Override
    public int selectCount() {
        return commentDAO.selectCount();
    }


}
